// Author: Puyan Lotfi
// Date: Written in June 2009
// Description: UI Code for FooScope

#pragma once

#include <QtGui/QMainWindow>
#include <QTreeWidgetItem>
#include <QSplitter>
#include "cpphighlighter.h"
#include "ctagsreader.h"
#include "editorhelpers.h"
#include "languagefacilities.h"

namespace Ui
{
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    //QSplitter* m_splitter;
    CtagsReader m_tagsReader;
    EditorHelpers m_helper;
    LanguageFacilities m_lang;
    QString m_currentFile;
    QString m_currentDirectory;
    Ui::MainWindow *ui;

private slots:
    void on_actionFont_triggered();
    void on_actionExit_triggered();
    void on_treeWidget_itemDoubleClicked(QTreeWidgetItem* item, int column);
    void on_lineEdit_returnPressed();
    void on_actionOpen_Tag_File_triggered();
    void on_actionSave_As_triggered();
    void on_actionSave_triggered();
    void on_actionOpen_triggered();

};
